import http from '../utils/request'

export const list = {
  getSuppliers: {
    url: 'supplier/index',
    method: 'get'
  },
  getRecords: {
    url: 'supplier/records',
    method: 'get'
  },
  getPartners:{
    url:'partner/lst',
    method: 'get'
  }
}

export const getSuppliers = params => {
  return http.request({
    ...list.getSuppliers,
    params
  })
}

export const getRecords = params => {
  return http.request({
    ...list.getRecords,
    params
  })
}
export const getPartner = () => {
  return http.request({
      ...list.getPartners
  })
}
